package com.menfan.saas.dao;

import com.menfan.saas.domain.UserEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * Created by Administrator on 2018/6/30 0030.
 */
//@Mapper 注解方式也可以使用 二选一
public interface UserMapper {
//    @Select("select * from user where id = #{id}")
    UserEntity getUserInfo(Integer id);
//    @Select("select * from user ")
    List<UserEntity> getUserList();

    void addUser(UserEntity userEntity);
}
